package com.ruoyi.safety.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 煤矿管理对象 mine
 * 
 * @author ruoyi
 * @date 2024-03-11
 */
public class Mine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 煤矿ID */
    private String mineId;

    /** 煤矿编码 */
    @Excel(name = "煤矿编码")
    private String mineCode;

    /** 煤矿名称 */
    @Excel(name = "煤矿名称")
    private String mineName;

    /** 视频设备数量 */
    @Excel(name = "视频设备数量")
    private Long videoDeviceNum;

    /** 地址 */
    @Excel(name = "地址")
    private String adress;

    /** 联系人 */
    @Excel(name = "联系人")
    private String person;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 增加日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "增加日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertDate;

    public void setMineId(String mineId) 
    {
        this.mineId = mineId;
    }

    public String getMineId() 
    {
        return mineId;
    }
    public void setMineCode(String mineCode) 
    {
        this.mineCode = mineCode;
    }

    public String getMineCode() 
    {
        return mineCode;
    }
    public void setMineName(String mineName) 
    {
        this.mineName = mineName;
    }

    public String getMineName() 
    {
        return mineName;
    }
    public void setVideoDeviceNum(Long videoDeviceNum) 
    {
        this.videoDeviceNum = videoDeviceNum;
    }

    public Long getVideoDeviceNum() 
    {
        return videoDeviceNum;
    }
    public void setAdress(String adress) 
    {
        this.adress = adress;
    }

    public String getAdress() 
    {
        return adress;
    }
    public void setPerson(String person) 
    {
        this.person = person;
    }

    public String getPerson() 
    {
        return person;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setInsertDate(Date insertDate) 
    {
        this.insertDate = insertDate;
    }

    public Date getInsertDate() 
    {
        return insertDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mineId", getMineId())
            .append("mineCode", getMineCode())
            .append("mineName", getMineName())
            .append("videoDeviceNum", getVideoDeviceNum())
            .append("adress", getAdress())
            .append("person", getPerson())
            .append("phone", getPhone())
            .append("insertDate", getInsertDate())
            .toString();
    }
}
